using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using QnA;
public partial class admin_ManageNews : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        AdminClass admin = new AdminClass();
        admin.adminAuthenticate();


        if (Request.QueryString["do"]==("view") || Request.QueryString["do"]==null)
        {
            admin.selectNews();
            DataView dv = AdminClass.dataset.Tables["News"].DefaultView;
          
            gridviewNews.DataSource = dv; 
            gridviewNews.DataBind();
            
        }
    }




    protected void gridviewNews_CustomCallback(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewCustomCallbackEventArgs e)
    {

    }
}
